package com.example.back.mapper;

import com.example.back.dto.resp.EscortReserveVo;
import com.example.common.entity.EscortReserve;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName EscortReserveMapper
 * @Author wengjt
 * @Date 2021/5/79:57
 * @Description
 **/
public interface EscortReserveMapper {
    List<EscortReserveVo> multipleSearch(@Param("escortProductName") String escortProductName, @Param("escortTypeId") Integer escortTypeId, @Param("rStatus") int[] rStatus);

    EscortReserveVo findById(@Param("escortReserveId") String escortReserveId);

    void removeById(@Param("escortReserveId") String escortReserveId);

    void agree(@Param("escortReserveId") String escortReserveId, @Param("rStatus") Integer rStatus, @Param("caregiverName") String caregiverName, @Param("caregiverPhone") String caregiverPhone, @Param("remark") String remark);

    void disagree(@Param("escortReserveId") String escortReserveId, @Param("refuse") String refuse, @Param("remark") String remark);
}
